home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 February / OpenLinux 2.3 CD.iso / live / usr / lib / rpm-2.5.5 / rpmrc < prev   
Encoding:
Text File  |  1999-08-10  |  7.6 KB  |  275 lines

  1. #############################################################
  2. # Default values, often overridden in /etc/rpmrc
  3. #
  4. # This file *should not be modified*. Local customizations
  5. # belong in /etc/rpmrc, not here. This file will be replaced
  6. # whenever a new version of RPM is installed.
  7.  
  8. dbpath:        /var/lib/rpm
  9. topdir:        /usr/src/OpenLinux
  10. tmppath:    /var/tmp
  11. gzipbin:    /bin/gzip
  12. bzip2bin:    /bin/bzip2
  13. defaultdocdir:  /usr/doc
  14. fixperms:    a+rX,g-w,o-w
  15. rpmfilename:    %{ARCH}/%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}.rpm
  16. instchangelog:    5
  17.  
  18. #############################################################
  19.  
  20. # Please send new entries to rpm-list@redhat.com
  21.  
  22. #############################################################
  23. # Values for RPM_OPT_FLAGS for various platforms
  24.  
  25. optflags: i386 -O2 -m486 -fno-strength-reduce
  26. optflags: alpha -O2
  27. optflags: sparc -O2
  28. optflags: m68k -O2 -fomit-frame-pointer
  29. optflags: ppc -O2 -fsigned-char
  30. optflags: parisc -O2 -mpa-risc-1-0
  31. optflags: hppa1.0 -O2 -mpa-risc-1-0
  32. optflags: hppa1.1 -O2 -mpa-risc-1-0
  33. optflags: hppa1.2 -O2 -mpa-risc-1-0
  34. optflags: hppa2.0 -O2 -mpa-risc-1-0
  35. optflags: mipseb -O2
  36. optflags: mipsel -O2
  37. optflags: arm3 -O2
  38. optflags: arm4 -O2
  39.  
  40. #############################################################
  41. # Canonical arch names and numbers
  42.  
  43. arch_canon:    i986:    i986    1
  44. arch_canon:    i886:    i886    1
  45. arch_canon:    i786:    i786    1
  46. arch_canon:    i686:    i686    1
  47. arch_canon:    i586:    i586    1
  48. arch_canon:    i486:    i486    1
  49. arch_canon:    i386:    i386    1
  50. arch_canon:    alpha:    alpha    2
  51. arch_canon:     sparc:    sparc    3
  52. arch_canon:     sun4:    sparc    3
  53. arch_canon:     sun4m:    sparc    3
  54. arch_canon:     sun4c:    sparc    3
  55. arch_canon:     sun4d:  sparc   3
  56. # This is really a place holder for MIPS.
  57. arch_canon:    mipseb:    mipseb    4
  58. arch_canon:    ppc:    ppc    5
  59. arch_canon:    m68k:    m68k    6
  60. arch_canon:    IP:    sgi    7
  61. arch_canon:     rs6000: rs6000  8
  62.  
  63. arch_canon:    sun4u:   usparc  10
  64. arch_canon:    mipsel:    mipsel    11
  65.  
  66. arch_canon:     arm:     arm     12
  67. arch_canon:     arm6:   arm3    12
  68. arch_canon:     arm610: arm3    12
  69. arch_canon:     arm7:   arm3    12
  70. arch_canon:     arm710: arm3    12
  71. arch_canon:     arm8:   arm4    12
  72. arch_canon:     arm810: arm4    12
  73. arch_canon:     sa110:  arm4    12
  74.  
  75. #############################################################
  76. # Canonical OS names and numbers
  77.  
  78. os_canon:    Linux:    Linux    1
  79. os_canon:    IRIX:    Irix    2
  80. # This is wrong
  81. os_canon:    SunOS5:    solaris    3
  82. os_canon:    SunOS4:    SunOS    4
  83.  
  84. os_canon:      AmigaOS: AmigaOS 5
  85. os_canon:          AIX: AIX     5
  86. os_canon:        HP-UX: hpux10  6
  87. os_canon:         OSF1: osf1    7
  88. os_canon:      FreeBSD: FreeBSD 8
  89. os_canon:       SCO_SV: SCO_SV3.2v5.0.2  9
  90. os_canon:    IRIX64: Irix64  10
  91. os_canon:     NEXTSTEP: NextStep 11
  92. os_canon:       BSD/OS: BSD_OS 12
  93. os_canon:      machten: machten 13
  94. os_canon:  CYGWIN32_NT: cygwin32 14
  95. os_canon:  CYGWIN32_95: cygwin32 15
  96. os_canon:      UNIX_SV: MP_RAS: 16
  97.  
  98. #############################################################
  99. # For a given uname().machine, the default build arch
  100.  
  101. buildarchtranslate: osfmach3_i986: i386
  102. buildarchtranslate: osfmach3_i886: i386
  103. buildarchtranslate: osfmach3_i786: i386
  104. buildarchtranslate: osfmach3_i686: i386
  105. buildarchtranslate: osfmach3_i586: i386
  106. buildarchtranslate: osfmach3_i486: i386
  107. buildarchtranslate: osfmach3_i386: i386
  108.  
  109. buildarchtranslate: i986: i386
  110. buildarchtranslate: i886: i386
  111. buildarchtranslate: i786: i386
  112. buildarchtranslate: i686: i386
  113. buildarchtranslate: i586: i386
  114. buildarchtranslate: i486: i386
  115. buildarchtranslate: i386: i386
  116.  
  117. buildarchtranslate: osfmach3_ppc: ppc
  118. buildarchtranslate: powerpc: ppc
  119. buildarchtranslate: powerppc: ppc
  120.  
  121. #############################################################
  122. # Architecture compatibility
  123.  
  124. arch_compat: alpha: axp noarch
  125.  
  126. arch_compat: i986: i886
  127. arch_compat: i886: i786
  128. arch_compat: i786: i686
  129. arch_compat: i686: i586
  130. arch_compat: i586: i486
  131. arch_compat: i486: i386
  132. arch_compat: i386: noarch
  133.  
  134. arch_compat: osfmach3_i986: i986 osfmach3_i886
  135. arch_compat: osfmach3_i886: i886 osfmach3_i786
  136. arch_compat: osfmach3_i786: i786 osfmach3_i686
  137. arch_compat: osfmach3_i686: i686 osfmach3_i586
  138. arch_compat: osfmach3_i586: i586 osfmach3_i486
  139. arch_compat: osfmach3_i486: i486 osfmach3_i386
  140. arch_compat: osfmach3_i386: i486
  141.  
  142. arch_compat: osfmach3_ppc: ppc
  143. arch_compat: powerpc: ppc
  144. arch_compat: powerppc: ppc
  145.  
  146. arch_compat: usparc: sparc
  147. arch_compat: sparc: noarch
  148.  
  149. arch_compat: ppc: rs6000
  150. arch_compat: rs6000: noarch
  151. arch_compat: mipseb: noarch
  152. arch_compat: mipsel: noarch
  153.  
  154. arch_compat: hppa2.0: hppa1.2
  155. arch_compat: hppa1.2: hppa1.1
  156. arch_compat: hppa1.1: hppa1.0
  157. arch_compat: hppa1.0: parisc
  158. arch_compat: parisc: noarch
  159.  
  160. arch_compat: arm4: arm3
  161. arch_compat: arm3: noarch
  162.  
  163. os_compat:   IRIX64: IRIX
  164. os_compat: solaris2.6: solaris2.3 solaris2.4 solaris2.5
  165. os_compat: solaris2.5: solaris2.3 solaris2.4
  166. os_compat: solaris2.4: solaris2.3
  167.  
  168. os_compat: hpux11.00: hpux10.30
  169. os_compat: hpux10.30: hpux10.20
  170. os_compat: hpux10.20: hpux10.10
  171. os_compat: hpux10.10: hpux10.01
  172. os_compat: hpux10.01: hpux10.00
  173. os_compat: hpux10.00: hpux9.07
  174. os_compat: hpux9.07: hpux9.05
  175. os_compat: hpux9.05: hpux9.04
  176.  
  177. os_compat: osf4.0: osf3.2
  178.  
  179. os_compat: ncr-sysv4.3: ncr-sysv4.2
  180.  
  181. buildarch_compat: i986: i886
  182. buildarch_compat: i886: i786
  183. buildarch_compat: i786: i686
  184. buildarch_compat: i686: i586
  185. buildarch_compat: i586: i486
  186. buildarch_compat: i486: i386
  187. buildarch_compat: i386: noarch
  188.  
  189. buildarch_compat: sparc: noarch
  190. buildarch_compat: alpha: noarch
  191. buildarch_compat: m68k: noarch
  192. buildarch_compat: ppc: noarch
  193. buildarch_compat: mipsel: noarch
  194. buildarch_compat: mipseb: noarch
  195. buildarch_compat: arm4: noarch
  196. buildarch_compat: arm3: noarch
  197. buildarch_compat: parisc: noarch
  198.  
  199. #############################################################
  200. # $Id: lib-rpmrc.epilogue,v 1.5 1999/01/18 10:44:08 ray Exp ray $
  201.  
  202. #############################################################
  203. # Default macros for Caldera OpenLinux packages...
  204. # (definitely require a modified rpm-binary!)
  205.  
  206. # simple ones
  207. macro: fixSymlinks     /usr/lib/rpm-2.5.5/fixsymlinks.pl
  208. macro: fixUP        /usr/lib/rpm-2.5.5/fixup.pl
  209. macro: mkCopyright     /usr/lib/rpm-2.5.5/mkcopyright.pl
  210. macro: mkLists        /usr/lib/rpm-2.5.5/mklists.pl
  211. macro: ckLibC5        /usr/lib/rpm-2.5.5/cklibc5.pl
  212.  
  213. # a little more complex ...
  214. ## macros intended for (exclusive) use by other macros...
  215. macro: _DESTDIR     \
  216.   DESTDIR=$RPM_BUILD_ROOT;export DESTDIR
  217.  
  218. macro: _BaseEnv     \
  219.   %{_DESTDIR}; GZIP="-v9nf";export GZIP
  220.  
  221. macro: _MANPATHS    \
  222.   MANPATHS=`find $DESTDIR -type d -name "man[1-9n]" -print`
  223.  
  224. macro: _CheckAndRemove    \
  225.   { perl -e '$_=$ENV{DESTDIR}."/"; exit (!m:/tmp/\w\S+/: || m:/\.\./:)' && \n\
  226.   rm -rf $DESTDIR; } || { echo "Invalid BuildRoot: '$DESTDIR'!" 1>&2; false; }
  227.  
  228. macro: _UID        \
  229.   { [ -n "$UID" ] || { UID=`id -u`; export UID; }; }
  230.  
  231. ## and now for the goodies!  :*)
  232. ### predicates (preferably without comments...)
  233. macro: NoBuildCheck    \
  234.   { [ "$COL_BUILDCHECK" != "true" ]&& echo "*** %%BuildCheck disabled" 1>&2; }
  235.  
  236. macro: IsNotRoot    \
  237.   { %{_UID}; [ "$UID" -gt 0 ]; }
  238.  
  239. macro: IsRoot        \
  240.   { %{_UID}; [ "$UID" -eq 0 ]; }
  241.  
  242. ### installation set- and cleanup
  243. macro: DESTDIR        # %%{DESTDIR}\n\
  244.   %{_BaseEnv}
  245.  
  246. macro: mkDESTDIR    # %%{mkDESTDIR}\n\
  247.   %{_BaseEnv}\n\
  248.   #%%{ckLibC5} . || true\n\
  249.   %{_CheckAndRemove}\n\
  250.   mkdir -p $DESTDIR\n
  251.  
  252. macro: rmDESTDIR    # %%{rmDESTDIR}\n\
  253.   %{_BaseEnv};%{IsNotRoot}||%{_CheckAndRemove}\n
  254.  
  255. ### man- and info-pages
  256. macro:  MANPATHS    # %%{MANPATHS}\n\
  257.   %{_MANPATHS}
  258.  
  259. macro: fixManPages    # %%{fixManPages}\n\
  260.   [ -n "$MANPATHS" ] || %{_MANPATHS}\n\
  261.   if [ -n "$MANPATHS" ]; then \n\
  262.     chown -Rvc root.root $MANPATHS \n\
  263.     %{fixSymlinks} --man-gz $DESTDIR $MANPATHS \n\
  264.     find $MANPATHS -type f -not -name '*.gz' -print0 | \n\
  265.       xargs -0r gzip \n\
  266.   fi \n
  267.  
  268. macro: fixInfoPages    # %%{fixInfoPages}\n\
  269.   if [ -d "$DESTDIR/usr/info" ]; then \n\
  270.     find $DESTDIR/usr/info -type f -not -name '*.gz' -print0 | \n\
  271.       xargs -0r gzip \n\
  272.   fi \n\
  273.   rm -f $DESTDIR/usr/info/dir.gz \n
  274.  
  275.